package com.maben.server001;

import com.test.webservice.server001.WeatherInterfaceImpl;
import com.test.webservice.server001.WeatherInterfaceImplService;

/**
 * 简单客户端学习
 */
public class Client {
    public static void main(String[] args) {
        //创建服务视图
        WeatherInterfaceImplService weatherInterfaceImplService = new WeatherInterfaceImplService();
        //通过服务视图得到服务端点
        final WeatherInterfaceImpl port = weatherInterfaceImplService.getPort(WeatherInterfaceImpl.class);
        //调用webservice服务方法
        String result = port.queryWeather("郑州");
        System.out.println(result);
    }
}
